using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestStrategyCamera : MonoBehaviour
{

    public StrategyCamera strategyCamera;
    public List<Transform> targets;


    private int index = 0;
    private int count = 0;
    void Start()
    {
        count = targets.Count;
    }

    void Update()
    {
        if (count == 0)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.RightArrow))
        {
            strategyCamera.TransmitTo(targets[index]);

            index++;
            if (index >= count)
            {
                index = 0;
            }
        }
    }
}
